package cn.ctodb.im.server.peer;

import io.netty.channel.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * All rights Reserved, Designed By www.ctodb.cn
 *
 * @version V1.0
 * @author: lichaohn@163.com
 * @date: 2018-11-08 9:44
 * @Copyright: 2018 www.ctodb.cn All rights reserved.
 */
public class Peer {

    private static Logger logger = LoggerFactory.getLogger(Peer.class);

    private String uid;
    private long loginTime;
    private Channel channel; // 通道
    private long lastPacketTime; // 最后活跃时间

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public long getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(long loginTime) {
        this.loginTime = loginTime;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public long getLastPacketTime() {
        return lastPacketTime;
    }

    public void setLastPacketTime(long lastPacketTime) {
        this.lastPacketTime = lastPacketTime;
    }

    public Channel getChannel() {
        return channel;
    }
}
